package com.edisoncgh;

import org.junit.Test;

import java.util.List;

import static org.junit.jupiter.api.Assertions.*;

public class JunitTest {
    @Test
    // O=null,linked-list=[]
    public void myLinkedListTestCase01() {
        List<String> list = new LinkedList<>();
        assertFalse(list.remove(null));
    }

    @Test
    // O=null,linked-list=[null]
    public void myLinkedListTestCase02() {
        List<String> list = new LinkedList<>();
        list.add(null);
        assertTrue(list.remove(null));
    }

    @Test
    // O=1,linked-list=[]
    public void myLinkedListTestCase03() {
        List<String> list = new LinkedList<>();
        assertFalse(list.remove("1"));
    }

    @Test
    // O=1,linked-list=[1]
    public void myLinkedListTestCase04() {
        List<String> list = new LinkedList<>();
        list.add("1");
        assertTrue(list.remove("1"));
    }
}
